<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <title>企业信息维护</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Hosting Store Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <link href="${pageContext.request.contextPath}/static/home/css/bootstrap.css" rel='stylesheet' type='text/css' />
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="${pageContext.request.contextPath}/static/home/js/jquery-1.11.1.min.js"></script>
    <!-- Custom Theme files -->
    <link href="${pageContext.request.contextPath}/static/home/css/style.css" rel='stylesheet' type='text/css' />
    <!-- Custom Theme files -->
    <!-- webfonts -->
    <link href='${pageContext.request.contextPath}/static/home/css/font-awesome.css' rel='stylesheet' type='text/css'>
    <!-- webfonts -->
    <!-- dropdown -->
    <script src="${pageContext.request.contextPath}/static/home/js/jquery.easydropdown.js"></script>
    <link href="${pageContext.request.contextPath}/static/home/css/nav.css" rel="stylesheet" type="text/css" media="all"/>
    <!-- start-smoth-scrolling -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/home/js/move-top.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/home/js/easing.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function($) {
            $(".scroll").click(function(event){
                event.preventDefault();
                $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
            });
        });
    </script>

    <link href="${pageContext.request.contextPath}/static/home/css/company_style.css" rel="stylesheet" type="text/css"/>
    <!-- end-smoth-scrolling -->
</head>
<!-- Header Starts Here -->
<div class="inner-banner" >
    <%@include file="../header.jsp"%>
    <div id="breadcrumb_wrapper">
        <div class="container">

            <h3>信息维护</h3>
            <!--<span class="subtitle">信息查看</span>-->

            <div class="clearfix"></div>
        </div>
    </div>
</div>
<div class="clearfix"> </div>
<!-- Header Ends Here -->
<!--Main Starts Here-->
<div class="contact">
    <div class="container">
        <div class="contact-infom">
            <h4 style="margin-top: 30px;font-size: 200%; margin-left: 1%"><strong style="font-size: 150%">企业</strong> 详细信息</h4>
            <p style="margin-left: 1%">浏览您的企业信息，需要修改时请点击编辑按钮。</p>
        </div>
        <div class="company">
            <div class="company-frame read">
                <h4><strong style="font-size: 160%">企业</strong>&nbsp;用户信息</h4>
                <!--<div class="company-left">-->
                <div class="company-sm-frame">
                    <label for="input01">企业名称</label>
                    <input type="text" id="input01" readonly value="${company.company_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input02">所在地</label>
                    <input type="text" id="input02" readonly value="${company.zone_name} ${company.city_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input03">联系人</label>
                    <input type="text" id="input03" readonly value="${company.contact} （<c:if test="${company.contact_sex == 'M'}">男</c:if><c:if test="${company.contact_sex == 'F'}">女</c:if>） "/>
                </div>
                <div class="company-sm-frame">
                    <label for="input04">联系电话</label>
                    <input type="text" id="input04" readonly value="${company.zone_num}-${company.phone}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input05"> </label>
                    <input type="text" id="input05" readonly value="${company.telephone}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input06">用户名</label>
                    <input type="text" id="input06" readonly value="${company.fullname}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input07">电子邮箱</label>
                    <input type="text" id="input07" readonly value="${company.e_mail}"/>
                </div>

            </div>

            <div class="company-frame read">
                <h4><strong style="font-size: 160%">企业</strong>&nbsp;认证信息</h4>
                <div class="company-sm-frame">
                    <label for="input08">公司名称</label>
                    <input type="text" id="input08" readonly value="${companyDetail.company.company_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input09">主要行业</label>
                    <input type="text" id="input09" readonly value="${companyDetail.main_industry.industry_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input10">次要行业</label>
                    <input type="text" id="input10" readonly value="${companyDetail.sec_industry.industry_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input11">公司性质</label>
                    <input type="text" id="input11" readonly value="${companyDetail.company_property.property_name}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input12">公司规模</label>
                    <input type="text" id="input12" readonly value="${companyDetail.company_size.value}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input13">公司邮箱</label>
                    <input type="text" id="input13" readonly value="${company.e_mail}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input14">公司介绍</label>
                    <textarea id="input14" class="form-control" placeholder="公司简介" readonly>${companyDetail.indroduce}</textarea>
                </div>
                <div class="company-sm-frame">
                    <label for="input15">招聘联系人</label>
                    <input type="text" id="input15" readonly value="${companyDetail.recruit_contact}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input16">联系电话</label>
                    <input type="text" id="input16" readonly value="${companyDetail.zone_num}-${companyDetail.phone}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input17"> </label>
                    <input type="text" id="input17" readonly value="${companyDetail.telephone}"/>
                </div>
                <div class="company-sm-frame">
                    <label for="input18">公司地址</label>
                    <input type="text" id="input18" readonly value="${company.zone_name} ${company.city_name}"/>
                    <input type="text" readonly value="${companyDetail.address}" style="margin-left: 22%">
                </div>
                <div class="company-sm-frame">
                    <label for="input19">认证状态</label>
                    <c:choose>
                        <c:when test="${companyDetail.status == 0}">
                            <input type="text" id="input19" readonly value="待审核"/>
                        </c:when>
                        <c:when test="${companyDetail.status == 1}">
                            <input type="text" id="input19" readonly value="已认证"/>
                        </c:when>
                        <c:when test="${companyDetail.status == 2}">
                            <input type="text" id="input19" readonly value="审核不通过"/>
                        </c:when>
                    </c:choose>
                </div>
                <div class="company-sm-frame">
                    <label>营业执照</label>
                    <img <c:choose><c:when test="${companyDetail.licence_url != null}">src="${pageContext.request.contextPath}/upload/company/${companyDetail.licence_url}"</c:when></c:choose> style="width: 100%; height: 100%" alt="暂无上传营业执照">
                </div>

            </div>

            <div class="clearfix"> </div>

            <% if(request.getSession().getAttribute("type")!=null && request.getSession().getAttribute("type").equals("1")) {%>
            <div class="company-form">
                <!--<form>-->
                <!--<input type="submit" class="btn-link">-->
                <span style="margin: 0 40%">
                    <a href="${pageContext.request.contextPath}/home/company/info_edit.action"><input type="button" class="button" value="编辑"></a>
                </span>
                <!--</form>-->
            </div>
            <% } %>
        </div>


    </div>
</div>
<!--Main Ends Here-->


<!-- #Footer -->
<%@include file="../footer.jsp"%>
<!-- /#Footer -->
<!-- here stars scrolling icon -->
<script type="text/javascript">
    $(document).ready(function() {
        /*
         var defaults = {
         containerID: 'toTop', // fading element id
         containerHoverID: 'toTopHover', // fading element hover id
         scrollSpeed: 1200,
         easingType: 'linear'
         };
         */

        $().UItoTop({ easingType: 'easeOutQuart' });

    });
</script>
<!-- //here ends scrolling icon -->
</body>
</html>
